import Vue from "vue";

import VueRouter from "vue-router";
import Login from "../views/admin/Login";
import GameApprove from "../views/admin/GameApprove";
import AdministratorMenu from "../views/admin/AdministratorMenu";
import AwardedMarksDisplay from "../views/admin/AwardedMarksDisplay";
import MarkDownDisplay from "../views/admin/MarkDownDisplay";
import ExaminationApproval from "../views/admin/ExaminationApproval";
import UserMessage from "../views/admin/UserMessage";
import SchoolPlay from "../views/admin/SchoolPlay";
import AwardedMarks from "../views/admin/AwardedMarks";
import MarkDown from "../views/admin/MarkDown";
import NotFound from "../views/NotFound";
import ExamineApproveBrowse from "../views/admin/ExamineApproveBrowse";
import ExaminationApprovalOperate from "../views/admin/ExaminationApprovalOperate";
//用户路由导入
import UserMenu from "../views/User/UserMenu";
import Background from "../views/User/Background";
import GamePublicity from "../views/User/GamePublicity";
import ElsePublicity from "../views/User/ElsePublicity";
import ElseGamePublicity from "../views/User/ElseGamePublicity";
import GameUploading from "../views/User/GameUploading";
import GameUploadingPublicity from "../views/User/GameUploadingPublicity";
import ElseUploading from "../views/User/ElseUploading";
import ElseUploadingPublicity from "../views/User/ElseUploadingPublicity";
Vue.use(VueRouter);
export default new VueRouter({
  mode:'history',
  routes:[
    {
      path:'/',
      name:Login,
      component:Login
    },
    {
      path:'/admin/AdministratorMenu',
      component:AdministratorMenu,
      props:true,
      children:[
        {path:'/admin/UserMessage/',component:UserMessage},
        {path:'/admin/GameApprove', component:GameApprove},
        {path:'/admin/AwardedMarks', component:AwardedMarks},
        {path:'/admin/AwardedMarksDisplay', component:AwardedMarksDisplay},
        {path:'/admin/MarkDownDisplay', component:MarkDownDisplay},
        {path:'/admin/MarkDown', component:MarkDown},
        {path:'/admin/ExaminationApproval', component:ExaminationApproval},
        {path:'/admin/SchoolPlay', component:SchoolPlay},
        {path: '/admin/ExaminationApprovalBrowse',component: ExamineApproveBrowse},
        {path: '/admin/ExaminationApprovalOperate',component: ExaminationApprovalOperate}
      ]
    },
    {
      path:'/User/UserMenu',
      component:UserMenu,
      props:true,
      children:[
        {path:'/User/Background',component:Background},
        {path:'/User/GamePublicity',component:GamePublicity},
        {path:'/User/ElsePublicity',component:ElsePublicity},
        {path:'/User/ElseGamePublicity',component:ElseGamePublicity},
        {path:'/User/GameUploading',component:GameUploading},
        {path:'/User/GameUploadingPublicity',component:GameUploadingPublicity},
        {path:'/User/ElseUploading',component:ElseUploading},
        {path:'/User/ElseUploadingPublicity',component:ElseUploadingPublicity},
      ]
    },
    {
      path:'*',
      component:NotFound
    }
  ]
})
